package cn.car.domains.vo.sysRole;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "添加角色权限入参")
public class AddPermissionReq {


    @Schema(description = "角色id")
    @NotNull(message = "角色id不能为空")
    private Long roleId;

    @Schema(description = "权限id列表")
    @NotNull(message = "权限id列表不能为空")
    @Size(min = 1, message = "权限id列表必须需要一个元素")
    private List<Long> permissionIds;
}
